import request from '/@/utils/request'

/**
 * 分页查询菜单
 * @param data 
 * @returns 
 */
export const menuPage = (data: any) =>{
  return request.post('/sys/menu/page',data)
}
/**
 * 菜单详情
 * @param data 
 * @returns 
 */
export const menuDetail = (data: any) =>{
  return request.post('/sys/menu/detail',data)
}
/**
 * 添加菜单
 * @param data 
 * @returns 
 */
export const menuSave = (data: any) =>{
  return request.post('/sys/menu/save',data)
}
/**
 * 修改菜单
 * @param data 
 * @returns 
 */
export const menuUpdate = (data: any) =>{
  return request.post('/sys/menu/update',data)
}
/**
 * 应用列表
 * @param data 
 * @returns 
 */
export const appList = (data: any) =>{
  return request.post('/sys/menu/appList',data)
}